@import com.mgfireworks.mgplatform.mgadmin.sys.model.Organization
@extends("/form_template")
@args Boolean isEdit
@args Organization organization
@{
	if(organization==null){
		organization=new Organization();
	}
}
<div class="row form-horizontal form-label-left">
   <div class="col-md-12 col-sm-12 col-xs-12">
     <div class="x_panel">
       <div class="x_title">
         <h2>@if(isEdit){修改}else{添加}机构</h2>
         <div class="clearfix"></div>
       </div>
       <div class="x_content">
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="orgId">机构编号<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="orgId" name="orgId" value="@organization.getOrgId()" placeholder="请输入机构编号" required="required" @if(isEdit&&true){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="orgName">机构名称<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="orgName" name="orgName" value="@organization.getOrgName()" placeholder="请输入机构名称" required="required" @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="orgLevel">机构级别<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="orgLevel" name="orgLevel" value="@organization.getOrgLevel()" placeholder="请输入机构级别" required="required" @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="orgStatus">状态<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="orgStatus" name="orgStatus" value="@organization.getOrgStatus()" placeholder="请输入状态" required="required" @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="orgAddress">机构地址
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="orgAddress" name="orgAddress" value="@organization.getOrgAddress()" placeholder="请输入机构地址"  @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="orgOfficial">负责人
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="orgOfficial" name="orgOfficial" value="@organization.getOrgOfficial()" placeholder="请输入负责人"  @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="orgContact">联系方式
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="orgContact" name="orgContact" value="@organization.getOrgContact()" placeholder="请输入联系方式"  @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="areaId">区域编号<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="areaId" name="areaId" value="@organization.getAreaId()" placeholder="请输入区域编号" required="required" @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="description">说明
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="description" name="description" value="@organization.getDescription()" placeholder="请输入说明"  @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
       </div>
     </div>
   </div>
</div>